package org.design.commandPattern;

/**
 * Stock
 *
 * @author 樊温军
 * @date 2025/6/11 下午2:17
 */
public class Stock {

    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        System.out.println("仓库 [ 名称: "+name+",数量: " + quantity +" ] 买");
    }
    public void sell(){
        System.out.println("仓库 [ 名称: "+name+",数量: " + quantity +" ] 卖");
    }
}
